package com.sharemarking.wa.platform.controller;

import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.ReceiveOrderManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxy
 */
@RequestMapping("receiveOrderManagement")
@RestController
public class ReceiveOrderManagementController {
    @Autowired
    private ReceiveOrderManagementService receiveOrderManagementService;


    /**
     * 接单
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "acceptOrder")
    public ResponseParams<?> acceptOrder() throws Exception {
        return receiveOrderManagementService.acceptOrder();
    }


    /**
     * 获取选择废品列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "chooseWaste")
    public ResponseParams<?> chooseWaste() throws Exception {
        return receiveOrderManagementService.chooseWaste();
    }

}
